package com.example.shopping.pojo;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.stereotype.Repository;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/29 17:23
 * @version: v1.0
 */
@Repository
@Data
public class Merchants {
    private Integer id;
    @NotNull(message = "商家名称不能为空")
    @Size(min = 3, max = 10, message = "商家名称在3-10字之间")
    private String merchantName;
    @NotNull(message = "用户名不能为空")
    @Size(min = 3, max = 10, message = "用户名长度在3-10")
    private String username;
    @NotNull(message = "不能为空")
    @Size(min = 3, max = 10, message = "密码长度在3-10")
    private String password;
}
